Skip to main content

ModifyVpnGatewayAttribute

Description

call the ModifyVpnGatewayAttribute interface to modify the name and description information of the VPN gateway.

Request Method

POST

Request Path

/apsara/route/Vpc/ModifyVpnGatewayAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DescriptionBODYstringNovpn gatewaydescription information of VPN gateway. is 2 to 256 characters in length and must start with a letter or Chinese, but you cannot use http:// or https:// beginning.
VpnGatewayIdBODYstringYesvpn-bp1q8bgx4xnkm2ogj****the id of the VPN gateway instance.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env66-d01the region ID of the VPN gateway instance. You can obtain the region ID by calling the DescribeRegions interface.
ClientTokenBODYstringNo02fb3da4-130e-11e9-8e44-0016e04115bclient token to ensure the idempotence of the request. the parameter value is generated by the client, which is unique between different requests and does not value more than 64 ASCII characters at most.
versionBODYstringNo2016-01-01version of api
NameBODYstringNomyvpnthe name of the VPN gateway. The length is 2 to 128 characters, must start with a letter or Chinese, and can contain numbers, half-width periods (.), underscores (_), and dashes (-). But you cannot use http:// or https:// beginning.

Return data

NameTypeSample valueDescription
Statusstringactivestatus of VPN gateway.
Descriptionstringtestdescription information of VPN gateway instance.
VpcIdstringvpc-bp1ub1yt9cvakoel****ID of the VPC to which the VPN gateway instance belongs.
InternetIpstring116.XX.XX.69the public IP address of the VP gateway instance.
EndTimelong1495382400000the expiration timestamp of the VPN gateway instance.
RequestIdstring54B48E3D-DF70-471B-AA93-08E683A1B457request ID.
VpnGatewayIdstringvpn-bp1q8bgx4xnkm2ogj****the id of the VPN gateway instance.
VSwitchIdstringvsw-bp1y9ovl1cu9ou4tv****ID of the switch to which the VPN gateway instance belongs.
CreateTimelong1492753580000the creation timestamp of the VPN gateway instance.
Specstring5 Mbpsthe specification of the VPN gateway instance.
IntranetIpstring172.XX.XX.104private network IP of VPN gateway.
Namestringtestthe name of the VPN gateway instance.

Example

Successful Response example

{
"Status":"active",
"Description":"test",
"VpcId":"vpc-bp1ub1yt9cvakoel****",
"InternetIp":"116.XX.XX.69",
"EndTime":"1495382400000",
"RequestId":"54B48E3D-DF70-471B-AA93-08E683A1B457",
"VpnGatewayId":"vpn-bp1q8bgx4xnkm2ogj****",
"VSwitchId":"vsw-bp1y9ovl1cu9ou4tv****",
"CreateTime":"1492753580000",
"Spec":"5 Mbps",
"IntranetIp":"172.XX.XX.104",
"Name":"test"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}